// 模拟数据mock
import Mock from "mockjs"

// 图表数据
let list = []
export default {
    getStatisticalData:()=>{
        for(let i = 0;i<7;i++){
            list.push(
                Mock.mock({
                    苹果:Mock.Random.float(100,8000,0,0),
                    凤梨:Mock.Random.float(100,8000,0,0),
                    香蕉:Mock.Random.float(100,8000,0,0),
                    芒果:Mock.Random.float(100,8000,0,0),
                    小米:Mock.Random.float(100,8000,0,0),
                    大米:Mock.Random.float(100,8000,0,0)
                })
            )
        }
        return {
            code:2000,
            data:{
                videoData:[
                    {
                        name:'小米',
                        value:1999
                    },
                    {
                        name:'大米',
                        value:3999
                    },
                    {
                        name:'红米',
                        value:2999
                    },
                    {
                        name:'华为',
                        value:4599
                    },
                    {
                        name:'小三星',
                        value:1499
                    }
                ],
                // zhuzhuangyu
                userData:[
                    {
                        data:'周一',
                        new:5,
                        active:200
                    },
                    {
                        data:'周二',
                        new:15,
                        active:400
                    },
                    {
                        data:'周三',
                        new:10,
                        active:300
                    },
                    {
                        data:'周四',
                        new:20,
                        active:100
                    },
                    {
                        data:'周五',
                        new:60,
                        active:500
                    },
                    {
                        data:'周六',
                        new:33,
                        active:700
                    },
                    {
                        data:'周日',
                        new:50,
                        active:400
                    },
                ],
                // 折线图
                orderData:
                    {
                        date:['20220717','20220718','20220719','20220720','20220721','20220721','20220722'],
                        data:list
                    },
                    tableData:[
                        {
                            name:'小米',
                            daysell:500,
                            monsell:5600,
                            totall:9766
                        },
                        {
                            name:'红米',
                            daysell:100,
                            monsell:3000,
                            totall:19766
                        },
                        {
                            name:'大米',
                            daysell:700,
                            monsell:7600,
                            totall:29766
                        },
                        {
                            name:'华为',
                            daysell:1200,
                            monsell:5600,
                            totall:18766
                        },
                        {
                            name:'苹果',
                            daysell:1500,
                            monsell:5600,
                            totall:9766
                        },
                        {
                            name:'小辣椒',
                            daysell:100,
                            monsell:600,
                            totall:4766
                        },
                    ]
                
            }
        }
    }
}